<?php
class AdminGroupServer {
	public function paging($numberEachPage = 10){
		$count = HttpDaoManager::getAdminGroupDao()->count();
		$page = new Page($count, $numberEachPage);
		$limit[0]= $page->which;
		$limit[1]=$numberEachPage;
		$list = HttpDaoManager::getAdminGroupDao()->getList($limit);
		$page1= $page->returnPage("?".ClassManager::getToos()->combinationGet('page')."&page=");
		$data['list'] =$list;
		$data['page'] = $page1;
		return $data;
 	}
 	public function deleteBatchByid($id){
 		if (is_array($id)){
 			$id = implode(',',$id);
 		}
 		HttpDaoManager::getAdminGroupDao()->deleteBatchByid($id);
 	}
}
?>